﻿using System;
using System.Collections.Generic;
using System.Data;
using Wei8808Cms.DAL;
using Wei8808Cms.Model;

namespace Wei8808Cms.BLL
{
    public class ProductBLL
    {
        private readonly ProductDAL _dal = new ProductDAL();

        public int GetCount(ProductQcInfo qcmodel)
        {
            return _dal.GetCount(qcmodel);
        }

        public DataSet GetPageList(ProductQcInfo qcmodel)
        {
            return _dal.GetPageList(qcmodel);
        }

        public bool Add(ProductInfo model)
        {
            return _dal.Add(model);
        }

        public bool Delete(List<ProductInfo> list)
        {
            return _dal.Delete(list);
        }

        public ProductInfo GetProductInfo(int id)
        {
            return _dal.GetProductInfo(id);
        }

        public bool Update(ProductInfo model)
        {
            return _dal.Update(model);
        }

        public bool UpdateField(int id, string status)
        {
            return _dal.UpdateField(id, status);
        }

        public List<ProductInfo> GetProductList()
        {
            return _dal.GetProductList();
        }
    }
}
